/**
 * form 控件元素的管理
 */
Yacon.widget.Form = function(conText)
{
	this.elementType   = "form";	
	Yacon.apply(this,conText);
	
	this.create();
};

Yacon.widget.Form.Extend(Yacon.widget.WinControl,{	
		 
      	/**
		 * 对象初始化
		 */
		create:function()
		{
			this.element            	= document.all[this.elementID];
			if (!this.element)
				return;
			
			this.setDataSet();
		},
		/**
		 * 获取数据集
		 **/
		setDataSet:function (dataSet)
		{	
			if (!dataSet)
			{
				if(this.element.getAttribute("dataSet") && this.element.getAttribute("dataSet") !="")
					 dataSetID = this.element.getAttribute("dataSet");
				
				if (window.dataSet)
					this.dataSet = window.dataSet;
				  else
				  {
				      this.dataSet = getDatasetByID();
				      window.dataSet = this.dataSet;
				  }
			}else
				this.dataSet =dataSet;
		}

});


